
import java.util.Scanner;

/**
 * @author Wingfung Hung
 */
public class SignInSystem {
    public static void main(String[] args) throws Exception {
        menu();
    }

    public static void menu() throws Exception {
        Scanner scanner=new Scanner(System.in);


        while (true) {
            System.out.println("==========登录系统===========");
            System.out.println("1：账户登录");
            System.out.println("2：账户注册");
            System.out.println("输入其他字符：退出系统");

            System.out.println("请您选择操作：");
            String command =scanner.next();

            switch (command){
                case "1":
                    // 用户登录操作
                    System.out.println("请输入你的用户名：");
                    String userName = scanner.next();
                    new SignInImplement().signIn(userName);
                    break;
                case "2":
                    // 用户账户注册
                    System.out.println("开始注册！");
                    new SignUpImplement().signUp();
                    break;
                default:
                    System.out.println("退出系统");
                    System.exit(0);
            }
        }
    }
}
